package cn.psvmc.cxzapi.mapper.customer;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.common.OrderEntity;
import cn.psvmc.cxzapi.model.customer.TCustomerGoodsRecord;
import cn.psvmc.cxzapi.model.order.TOrder;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 客户商品浏览记录表 Mapper 接口
 *
 * @Author auto
 * @Date 2024-08-27
 */
public interface TCustomerGoodsRecordMapper extends MyBaseMapper<TCustomerGoodsRecord> {

    //记录列表
    IPage<Map<String, Object>> listByCustomerId(Page<TCustomerGoodsRecord> iPage, @Param("customerId") Integer customerId);

    //客户浏览记录推荐商品列表
    IPage<Map<String, Object>> listGoods(Page<TOrder> queryPage, @Param("entity") OrderEntity entity);
}
